import mainPage from '@/views/content/mainPage/mainPage.vue'
import committeeActivity from '@/views/content/mainPage/committeeActivity.vue'
import committeeTraining from '@/views/content/mainPage/committeeTraining.vue'
import webSecure from "@/views/content/mainPage/webSecure.vue";
import about from "@/router/modules/about.js";
import ability from "@/router/modules/ability.js";
import download from "@/router/modules/download.js";
import news from "@/router/modules/news.js";
import expert from "@/router/modules/expert.js";
import member from "@/router/modules/member.js";
import product from "@/router/modules/product.js";
import policy from "@/router/modules/policy.js";
import industry from "@/views/content/news/industry.vue";
import newsDetail from "@/views/content/news/detail/newsDetail.vue";
export default [
	{
		path: '/',
		redirect: '/index'
	},
	{
		path: '/index',
		name: '首页',
		children: [
			{
				path: '',
				name: '首页',
				component: mainPage,
			},
			{
				path: 'committeeActivity',
				name: '协会动态',
				children: [
					{
						path: '',
						name: '协会动态',
						component: committeeActivity,
					},
					{
						path: 'newsDetail',
						name: '协会动态详情',
						component: newsDetail
					}
				]
			},
			{
				path: 'committeeTraining',
				name: '协会培训',
				children: [
					{
						path: '',
						name: '协会培训',
						component: committeeTraining,
					},
					{
						path: 'newsDetail',
						name: '协会培训详情',
						component: newsDetail
					}
				]
			},
			{
				path: 'webSecure',
				name: '网络安全资讯',
				children: [
					{
						path: '',
						name: '网络安全资讯',
						component: webSecure,
					},
					{
						path: 'newsDetail',
						name: '网络安全资讯详情',
						component: newsDetail
					}
				]
			},
			...about,
			...ability,
			...download,
			...news,
			...expert,
			...member,
			...product,
			...policy,
		]
	},
]
